.lottery-module {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Arial', sans-serif;
}

.lottery-container {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lottery-title {
  color: white;
  font-size: 2.5em;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.lottery-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.grid-item {
  width: 120px;
  height: 120px;
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.grid-item.active {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
  animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1.1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1.1); }
}

.prize-name {
  font-weight: bold;
  font-size: 14px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  margin-bottom: 5px;
}

.prize-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.lottery-controls {
  margin: 20px 0;
}

.lottery-btn {
  background: linear-gradient(45deg, #ff4757, #ff3838);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(255, 71, 87, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lottery-btn:hover:not(:disabled) {
  background: linear-gradient(45deg, #ff3838, #ff2f2f);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.6);
}

.lottery-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.lottery-btn.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.lottery-result {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 15px;
  margin-top: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lottery-result h3 {
  color: #333;
  margin: 0 0 10px 0;
  font-size: 1.5em;
}

.lottery-result p {
  color: #666;
  margin: 0;
  font-size: 1.1em;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .lottery-module {
    padding: 10px;
  }
  
  .lottery-container {
    padding: 20px;
  }
  
  .lottery-title {
    font-size: 2em;
  }
  
  .grid-item {
    width: 80px;
    height: 80px;
  }
  
  .prize-name {
    font-size: 12px;
  }
  
  .prize-desc {
    font-size: 10px;
  }
  
  .lottery-btn {
    padding: 12px 30px;
    font-size: 16px;
  }
}